package com.xk857.school.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xk857.entities.Card;
import com.xk857.entities.CardDetail;
import com.xk857.util.base.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author CV大魔王
 * @since 2021-05-03
 */
public interface ICardDetailService extends IService<CardDetail> {

    /**
     * 根据用户id查询是否有该用户的校园卡信息,返回发布的Card
     * @param userId 用户id
     * @return
     */
    Result searchByUserId(String userId);


    /**
     * 根据id将状态设为用户已读
     * @param id
     * @return
     */
    Result userHasRead(String id);
}
